package com.example.springbootjson.vo;

import com.example.springbootjson.parser.KsDmpSourceDeserialize;
import com.example.springbootjson.parser.KsDmpSourceSerialize;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

public class UserVo2 {
    @JsonDeserialize(using = KsDmpSourceDeserialize.class)
    @JsonSerialize(using = KsDmpSourceSerialize.class)
    private String name;

    @JsonSerialize(using = KsDmpSourceSerialize.class)
    private String addr;

    private Integer age;

    private School school;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public School getSchool() {
        return school;
    }

    public void setSchool(School school) {
        this.school = school;
    }
}
